package com.jie.controller;

import com.jie.lanxin.dto.ChatGptDTO;
import com.jie.lanxin.vo.ChatGptVO;
import com.jie.response.RespBean;
import com.jie.lanxin.impl.VivoGPTService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/api")
@Api(tags = "蓝心大模型模块")
public class VivoGPTController {

    @Autowired
    private VivoGPTService vivoGPTService;

    @ApiOperation(value = "chat会话接口")
    @PostMapping("/get/chatGpt")
    public RespBean<ChatGptDTO> getChatGpt(@RequestBody ChatGptVO chatGptVO) throws Exception {
        return RespBean.success("chat",vivoGPTService.vivogpt(chatGptVO));
    }
}
